/* hardware_options.h -- HardwareOptions dialog class declaration
 * hardware_options.h is part of Robodrome
 *
 * Copyright (c) 2009 Alex French
 * Robodrome is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Robodrome is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

#pragma once
#include <libglademm/xml.h>
#include <gtkmm.h>

class HardwareOptions : public Gtk::Dialog
{
	public:
		HardwareOptions(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refXml);
		virtual ~HardwareOptions() {}
		void init(void);

	protected:
		Glib::RefPtr<Gnome::Glade::Xml> m_refXml;
		Gtk::Label *points_label;
		Gtk::RadioButton *bullet_type_button[3];
		Gtk::RadioButton *turret_type_button[3];
		Gtk::RadioButton *energy_max_button[4];
		Gtk::RadioButton *damage_max_button[4];
		Gtk::RadioButton *shield_max_button[4];
		Gtk::RadioButton *cpu_max_button[5];
		Gtk::CheckButton *missiles_button;
		Gtk::CheckButton *tacnukes_button;
		Gtk::CheckButton *hellbores_button;
		Gtk::CheckButton *mines_button;
		Gtk::CheckButton *stunners_button;
		Gtk::CheckButton *probes_button;
		Gtk::CheckButton *no_negative_energy_button;
		void on_bullet_type_button_toggled(void);
		void on_turret_type_button_toggled(void);
		void on_energy_max_button_toggled(void);
		void on_damage_max_button_toggled(void);
		void on_shield_max_button_toggled(void);
		void on_cpu_max_button_toggled(void);
		void on_missiles_button(void);
		void on_tacnukes_button(void);
		void on_hellbores_button(void);
		void on_mines_button(void);
		void on_stunners_button(void);
		void on_probes_button(void);
		void on_no_negative_energy_button(void);
		void update(void);
};
